home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _GUICtrlMonthCalGetMaxTodayWidth.au3 < prev    next >
Text File  |  2006-06-17  |  367b  |  15 lines

  1. #include <GUIConstants.au3>
  2. #include <date.au3>
  3. #include <GuiMonthCal.au3>
  4.  
  5. opt('MustDeclareVars', 1)
  6.  
  7. Dim $Date
  8.  
  9. GUICreate( "Get Max Today Width", 210, 190)
  10.  
  11. $Date = GUICtrlCreateMonthCal (_NowCalcDate(), 10, 10)
  12. GUISetState()
  13.  
  14. MsgBox(0, 'Maximum width of the "today" string in a month calendar control.', _GUICtrlMonthCalGetMaxTodayWidth ($Date), 10)
  15.